Skip to content

Conversation

@marcauberer
Copy link
Contributor

@marcauberer marcauberer commented Feb 3, 2026

This allows to obtain the address range of the allocated memor slab by
the underlying ElfMapper. The allocation size is the ptrdiff between
first and second of the returned pair.

Additional change:
Mark get_sym_addr as const, since it only performs a map lookup.

@T0b1-iOS
Copy link
Member

T0b1-iOS commented Feb 5, 2026

Can I ask what the motivation of this is devoid of any information where the code is mapped?

@marcauberer
Copy link
Contributor Author

@T0b1-iOS As you probably know, our use case is an in-memory database. We need to know the size of the allocation to be able to make decisions regarding caching and OOM prevention.
If you wish, I can extend my change so it is also possible to obtain the start address of the mapped allocation.

@T0b1-iOS
Copy link
Member

Yeah, providing a range of the mapped region is probably a better choice. That would be good

This allows to obtain the address range of the allocated memor slab by
the underlying ElfMapper. The allocation size is the ptrdiff between
first and second of the returned pair.
@marcauberer marcauberer changed the title [TPDE][LLVM] Add get_mapped_size method to JITMapper [TPDE][LLVM] Add get_mapped_range method to JITMapper Feb 10, 2026
@marcauberer
Copy link
Contributor Author

@T0b1-iOS Done. Now a pair of start and end address of the allocation is returned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants